package com.huakang.service.impl;

import com.huakang.entity.Department;
import com.huakang.mapper.DepartmentMapper;
import com.huakang.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

/**
 * @Author{小熊}
 * @Date2025/1/13 14:31
 */
@Service
@Transactional
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> getAll() {
        return departmentMapper.selectByExample(null);
    }
}
